﻿@model NewRen.Models.SpiderNews
@{
    ViewBag.Title = "抓取的新闻展示";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>抓取的新闻展示</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="/Admin/News/Index">新闻管理</a>
            </li>
            <li>
                <a href="/Admin/News/Import">新闻导入</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>抓取的新闻展示 - <small><a href="/Admin/News/Import">新闻导入</a></small></h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="detail-table">
                            <tr>
                                <td class="row-title">ID</td>
                                <td>@Model.ID</td>
                            </tr>
                            <tr>
                                <td class="row-title">时间</td>
                                <td>@Model.DateTime</td>
                            </tr>
                            <tr>
                                <td class="row-title">标题</td>
                                <td>@Model.Title</td>
                            </tr>
                            <tr>
                                <td class="row-title">内容</td>
                                <td>@Html.Sanitized(Model.Content)</td>
                            </tr>
                            <tr>
                                <td class="row-title">ID</td>
                                <td>@Model.ID</td>
                            </tr>
                            <tr>
                                <td class="row-title">来源</td>
                                <td>@Model.Source</td>
                            </tr>
                            <tr>
                                <td class="row-title">URL</td>
                                <td>@Model.URL</td>
                            </tr>
                            <tr>
                                <td class="row-title">分类</td>
                                <td>@Model.Category</td>
                            </tr>
                            <tr>
                                <td class="row-title">地区</td>
                                <td>@Model.Area</td>
                            </tr>
                            <tr>
                                <td class="row-title">摘要</td>
                                <td>@Model.Summary</td>
                            </tr>
                            <tr>
                                <td class="row-title">状态</td>
                                <td>@Model.Status</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@if ((int)Model.Status == 0)
{
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>编辑入库 - <small><a href="/Admin/News/Import">新闻导入</a></small></h5>
                    </div>
                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            @using (Html.BeginForm("SpiderNewsImport", "News", FormMethod.Post, new { id = "frmAddNewRen", @class = "form-horizontal", enctype = "multipart/form-data" }))
                            {
                                @Html.AntiForgeryToken()
                                <input type="hidden" name="id" value="@Model.ID" />

                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-primary" type="submit">入库</button>
                                    </div>
                                    <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                                </div>
                            }
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}

